package com.sharp.core.graphics;

public class Material {
	private float reflectivity;
	private float transmittivity;
	private Color color;
	private float diffuse;
	
	public Material() {
		color = new Color();
		diffuse = 1;
	}
	
	public Material(Material m) {
		setTo(m.reflectivity, m.color, m.diffuse);
	}
	
	public final void setTo(float r, Color c, float d) {
		this.reflectivity = r;
		this.color = c;
		this.diffuse = d;
	}

	public float getReflectivity() {
		return reflectivity;
	}

	public void setReflectivity(float reflection) {
		this.reflectivity = reflection;
	}

	public UnColor getColor() {
		return color;
	}

	public void setColor(UnColor blue) {
		this.color = new Color(blue);
	}

	public float getDiffuse() {
		return diffuse;
	}

	public void setDiffuse(float diffuse) {
		this.diffuse = diffuse;
	}
	
	public float getTransmittivity() {
		return transmittivity;
	}

	public void setTransmittivity(float transmittivity) {
		this.transmittivity = transmittivity;
	}

	@Override
	public String toString() {
		return "Color: "+color+", Reflection: "+reflectivity+", Diffuse: "+diffuse;
	}
}
